from django.db import models

# Create your models here.
class Employee(models.Model):
    id=models.AutoField(primary_key=True,auto_created=True)
    name=models.CharField(max_length=10,null=False)
    department=models.CharField(max_length=20,null=False,default='未分配')
    satary=models.DecimalField(null=False,default=0.0,decimal_places=1,max_digits=10)
    position=models.CharField(max_length=50,null=False)
    hire_data=models.DateTimeField(auto_now=True)
    status=models.IntegerField(choices=([(1,'试用期'),(2,'正式'),(3,'离职')]))